class FeatureExtractor:
    def extract_features(self, y, sr):
        """提取音频特征"""
        return {
            "chroma": librosa.feature.chroma_stft(y=y, sr=sr).mean(axis=1),
            "mfcc": librosa.feature.mfcc(y=y, sr=sr).mean(axis=1)
        }